package com.hspedu.exception_.homework;

/**
 * @Author Stringzhua
 * @Date 2024/3/8 13:26
 * description:查看结果
 *
 * result:
 * B
 * C
 * D
 */
public class homework03 {
    public static void main(String[] args) {
        try {
            func();
            System.out.println("A");
        } catch (Exception e) {
            System.out.println("C");
        }
        System.out.println("D");
    }

    public static void func() {
        try {
            throw new RuntimeException();
        } finally {
            System.out.println("B");
        }
    }
}
